import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;

import moment from "moment";

// 导入vant按需导入的全局配置
import "./utils/vant.js";

// 导入flexible:自动设置rem为当前屏幕的1/10
import "amfe-flexible";

Vue.filter("showDate", function(value) {
  return moment(value).fromNow();
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
